/**
 * 
 */
package se.cirrus.base.com;

import java.util.logging.*;

/**
 * @author Winquman
 *
 */
public class ControllerThread extends Thread {

	private final Controller c;
	private Logger log;
	
	/**
	 * 
	 */
	public ControllerThread(Controller c) {
		this.c = c;
		log = LogManager.getLogManager().getLogger("ALL");
		
		log.fine("Controller thread correctly initialized.");
	}

	
		
	public void run() {
		
		log.fine("Controller thread is starting up.");
		
		c.loop();
		
		log.info("Shutdown of controller thread completed, byebye!");
	}
}
